package com.ruoyi.web.controller.client.runjianhr;

import com.ruoyi.client.runjianhr.service.UtilService;
import com.ruoyi.common.core.controller.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

@Controller
@RequestMapping("ApplyToken/")
public class ApplyTokenController extends BaseController {

    @Resource
    UtilService utilService;

    /**
     * 获取润建 token
     */
    @RequestMapping("getToken")
    @ResponseBody
    public String getToken(@RequestBody Map<String,String> map){
        String result = utilService.getToken(map);
        return result;
    }
}
